import enumMode from "../em/enumMode"
import enumCmds from "../em/enumCmds"
import enumMesg from "../em/enumMesg"
import supScripts from "../sup/supScripts"

export default class infosModule extends supScripts {

    public static map: Map<string, any> = new Map();
    constructor() {
        super(true, enumMode.infosModule);
    }

    public static getData(name: string): any {
        return infosModule.map[name];
    }

    public static setData(name: string, data: any) {
        infosModule.map[name] = data;
    }

    public static getLogin() {
        return infosModule.map[enumMesg.s2c_loginResult]
    }

    public static getClubs() {
        return infosModule.map[enumMesg.s2c_clubClubs]
    }
    
}